﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="VlogeSeznam.aspx.cs" Inherits="Sio.Mdm.Web.Uporabnik.VlogeSeznam" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Vloge</title>
</head>
<body>
  <form id="formVlogeSezam" runat="server">
    <ext:ResourceManager ID="ResourceManagerVlogeSezam" runat="server" />
    <ext:Viewport ID="ViewportVlogeSezam" runat="server" Layout="Fit">
      <Content>
		    <sio:GridPanel ID="VlogeGrid" runat="server" 
			    StripeRows="true"
			    TrackMouseOver="true"
			    Width="700">
     			<Store>
			      <ext:Store ID="StoreVlogeSeznam" runat="server">
			      <Reader>
				      <ext:JsonReader IDProperty="ID">
					      <Fields>
      			      <ext:RecordField Name="VlogaId" Type="Int" />
						      <ext:RecordField Name="TipVloge" Type="String" />
						      <ext:RecordField Name="Organizacija" Type="String" />
						      <ext:RecordField Name="Zacetek" Type="string" DateFormat="dd.mm.yyyy"/>
						      <ext:RecordField Name="Konec" Type="String" />
						      <ext:RecordField Name="Status" Type="String" />
					      </Fields>
				      </ext:JsonReader>
			      </Reader>
			      </ext:Store>
		      </Store>	    
		      <ColumnModel ID="ColumnModelVlogeSezam" runat="server">
		        <Columns>
			        <ext:RowNumbererColumn />
			        <ext:Column ColumnID="IdmStevilka" Hidden="true" Hideable="false" DataIndex="IdmStevilka"></ext:Column>			
			        <ext:Column ColumnID="VlogaId" Hidden="true" Hideable="false" DataIndex="VlogaId"></ext:Column>			
              <ext:Column ColumnID="TipVloge" Header="Naziv vloge" DataIndex="TipVloge"></ext:Column>
			        <ext:Column Header="Organizacija" DataIndex="Organizacija" Width="200">   </ext:Column>
			        <ext:Column Header="Začetek" DataIndex="Zacetek" width="100">  </ext:Column>
			        <ext:Column Header="Konec" DataIndex="Konec">   </ext:Column>
			        <ext:Column Header="Status" DataIndex="Status">  </ext:Column>
		            <ext:CommandColumn Width="35">
                <Commands>
                  <ext:GridCommand Icon="NoteEdit" CommandName="Uredi"><ToolTip Text="Uredi" /></ext:GridCommand>
                </Commands>
              </ext:CommandColumn>
		        </Columns>
		      </ColumnModel>
		      <SelectionModel>
            <ext:RowSelectionModel runat="server" SingleSelect="true" />
          </SelectionModel>
          <%--<Listeners>
            <Command Handler="parent.addTab(parent.parent.TabNavigation, 'idPodrobnosti', 'UceciPodrobnosti.aspx?vlogaId='+record.data.VlogaId,'Podrobnosti '+record.data.O);" />
          </Listeners>--%>
        </sio:GridPanel>
      </Content>
	  </ext:Viewport>	
  </form>
</body>
</html>
